/*
 * @(#)CityVO.java
 * Copyright (c) 2011 TravelSky Technology Ltd. All Right Reserved. 
 */
package com.meetingshow.meeting.uiservice.model;

import com.meetingshow.common.base.uiservice.model.BaseVO;
import com.meetingshow.meeting.dao.model.CityPO;

public class CityVO extends BaseVO {
    
    /**
	 * 
	 */
	private static final long serialVersionUID = -3641869971351657341L;
	private java.lang.Integer cityId;
        
    public void setCityId(java.lang.Integer cityId) {
        this.cityId = cityId;
    }
        
    public java.lang.Integer getCityId() {
        return cityId;
    }
    private java.lang.String abbrev;
        
    public void setAbbrev(java.lang.String abbrev) {
        this.abbrev = abbrev;
    }
        
    public java.lang.String getAbbrev() {
        return abbrev;
    }
    private java.util.Date createTime;
        
    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }
        
    public java.util.Date getCreateTime() {
        return createTime;
    }
    private java.lang.String name;
        
    public void setName(java.lang.String name) {
        this.name = name;
    }
        
    public java.lang.String getName() {
        return name;
    }
    private java.lang.String nameEn;
        
    public void setNameEn(java.lang.String nameEn) {
        this.nameEn = nameEn;
    }
        
    public java.lang.String getNameEn() {
        return nameEn;
    }

    public CityVO() {
    }

    public CityVO(CityPO cityPO) {
        setCityId(cityPO.getCityId());
        setAbbrev(cityPO.getAbbrev());
        setCreateTime(cityPO.getCreateTime());
        setName(cityPO.getName());
        setNameEn(cityPO.getNameEn());
    }

    public CityPO toCityPO() {
        CityPO cityPO = new CityPO();
        
        cityPO.setCityId(getCityId());
        cityPO.setAbbrev(getAbbrev());
        cityPO.setCreateTime(getCreateTime());
        cityPO.setName(getName());
        cityPO.setNameEn(getNameEn());
        
        return cityPO;
    }
}